/* deque 删除 */
#include <iostream>
#include <deque>

using namespace std;
void my_print(deque<int> &d);

int main(int argc, char **argv)
{
    deque<int> d(10, 8);
    my_print(d);

    d.insert(d.begin(), 3);
    my_print(d);

    d.clear();
    my_print(d);
    
    return 0;
}

void my_print(deque<int> &d)
{
    deque<int>::iterator it = d.begin();

    for (; it != d.end(); it++)
    {
        cout << *it << " ";
    }
    cout << endl;

    return;
}